	<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<form name='MultipleWorkflows' method='post' ID="Form1">
			<TABLE cellspacing='1' cellpadding='5' border='0' width='100%' ID="Table1">
				<TR Class='N-MainBGColor'>
					<TD colspan='2'><font class='heading2'> Select Workflows </font>
					</TD>
				</TR>
				<!--Loaded from ReportMasterLevelMultipleWorkflowsDetails-->
				<%#multipleworkflows%>
				<TR Class='N-MainBGColor'>
					<TD colspan='2' align="middle">
						<font class='heading2'><input type="submit" name='Set Workflows' value='Set Workflows' class="button1" onclick='javascript:Validate()' ID="Submit1">
							&nbsp;&nbsp; <input type="button" name='close' value='Close' class="button1" onclick='javascript:window.close()' ID="Button1">
							&nbsp;&nbsp; <input type="reset" name='Reset' value='Reset' class="button1" ID="Reset1"> </font>
					</TD>
				</TR>
			</TABLE>
		</form>
		<script>
	function Validate()
	{

		var objcheck = document.getElementsByTagName("*")["chkworkflows"];

		var value="";
		for(i=0;i<objcheck.length;i++)
		{
			if(objcheck[i].checked)
			{
				if(value == "")
				{
					value = objcheck[i].value
				}
				else
				{
					value += ","+ objcheck[i].value
				}
			}

		}
		if(value =="")
			{
				alert('Please select a value.')
				return false;
			}

		//alert(self.opener.document.getElementsByTagName("input")["selapplicationhidden"].value)
		//Urlval = self.opener.location.href.substring(0,self.opener.location.href.indexOf('?'));
		//self.opener.location.href= Urlval +"?multipleworkflows="+ value +"&applicationname="+ self.opener.document.getElementsByTagName("input")["selapplicationhidden"].value
		//alert(value)
		self.opener.document.getElementsByTagName("input")["multipleworkflows"].value = value
		self.opener.document.forms[0].submit();
		window.close();

	}
	</script>

	<script>
	var workflows="";
	WorkflowObject = self.opener.document.getElementsByTagName("select")["selworkflow"] ;
	var objcheck = document.getElementsByTagName("*")["chkworkflows"];
	var mycount=0;
	for(i=0 ; i < WorkflowObject.length ; i++)
	{
		//Check the workflows already selected
		if(WorkflowObject[0].text == "All Workflows")
			break;
		for(j=0;j<objcheck.length;j++)
		{
			if(WorkflowObject[i].value == objcheck[j].value)
			{
				objcheck[j].checked=true;
			}

		}

	}
	</script>